package codepulse.blogmoon.cn.code.dubbo;

import codepulse.blogmoon.cn.code.dto.CodeAccountDetailDTO;
import codepulse.blogmoon.cn.code.process.CodeProcessFactory;
import jakarta.annotation.Resource;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

@Service
@DubboService
public class CodeAccountDubboServiceImpl implements CodeAccountDubboService {


    @Resource
    private CodeProcessFactory codeProcessFactory;

    @Override
    public void createCodeAccount(CodeAccountDetailDTO dto) {
        codeProcessFactory.getAccountProcess(dto.getSource()).createCodeAccount(dto);
    }
}
